package com.wqiuqiu.gulimall.order.feign;

import com.wqiuqiu.common.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;


@FeignClient("gulimall-product")
public interface ProductFeignService {
    @RequestMapping("/product/skuinfo/info/{skuId}")
    R info(@PathVariable("skuId") Long skuId);

    @GetMapping("product/spuinfo/{skuId}")
    R getSpuinfoBySkuId(@PathVariable("skuId") Long skuId);
}
